" words.txt

" search words that occupy whole lines only
autocmd BufEnter words.txt nnoremap / /^$<left>
autocmd BufLeave words.txt unmap /

" auto-append two new lines after pasting
autocmd BufEnter words.txt nnoremap <space>p "+p`]o<cr><esc>
autocmd BufLeave words.txt unmap <space>p

" insert the ° symbol
autocmd BufEnter words.txt nnoremap K I°<esc>
autocmd BufLeave words.txt unmap K

" Auto clear whitespace
autocmd BufWritePre words.txt ClearWhitespace
